Skip to content

feat(aci): Add empty states for Monitors / Alerts#113126

Merged
saponifi3d merged 4 commits intomasterfrom
jcallender/aci/iswf-2410
Apr 15, 2026
Merged

feat(aci): Add empty states for Monitors / Alerts#113126
saponifi3d merged 4 commits intomasterfrom
jcallender/aci/iswf-2410

Conversation

@saponifi3d
Copy link
Copy Markdown
Contributor

@saponifi3d saponifi3d commented Apr 15, 2026

Description

This adds a new empty state to the list views.

Screen.Recording.2026-04-15.at.2.54.19.PM.mov

Figma

@saponifi3d saponifi3d requested review from a team as code owners April 15, 2026 22:01
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 15, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 15, 2026
@saponifi3d saponifi3d requested a review from malwilley April 15, 2026 22:02
@@ -190,6 +219,10 @@ export function AutomationListTable({
);
}

const StyledFlex = styled(Flex)`
padding: 56px;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't love this, didn't see anything for 56px in the styles though. should i just use 64px since that's in size? 🤔

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I'd just use what's in the design tokens unless it makes the component look markedly worse

Copy link
Copy Markdown
Member

@malwilley malwilley Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh we should probably have a better empty state component in the design system, that could be coming eventually

<SimpleTable.Empty>
<StyledFlex gap="xl" direction="column" align="center">
<img src={NoAlertsImage} />
<Text as="h5">{t('No alerts found.')}</Text>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want Heading instead

to={{
pathname: makeMonitorBasePathname(organization.slug),
query: {
query: decodeScalar(location.query?.query),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you could use nuqs for the query keys:

const [query] = useQueryState('query', parseAsString)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you run this through svgo (fastest way is through the svgo.dev playground) you can reduce the size by quite a bit

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 will do.

as an aside, i'd have thought that is something part of the build system so public assets are always improved. maybe a thing we can bring up sometime?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that could be good to bring up for a frontend TSC, I think Evan has talked about such a thing before. Could also be part of the PR CI checks

Copy link
Copy Markdown
Member

@malwilley malwilley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@saponifi3d saponifi3d enabled auto-merge (squash) April 15, 2026 22:39
@saponifi3d saponifi3d merged commit d4c66aa into master Apr 15, 2026
65 checks passed
@saponifi3d saponifi3d deleted the jcallender/aci/iswf-2410 branch April 15, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants